@use "styles/Radius.module.scss";
@use "styles/Spacings.module.scss";
@use "styles/Typography.module.scss";
@use "styles/Variables.module.scss";

.brain_button_container {
  display: flex;
  padding: Spacings.$spacing04;
  border: 1px solid var(--border-0);
  border-radius: Radius.$normal;
  cursor: pointer;
  gap: Spacings.$spacing03;
  flex-direction: column;
  align-items: center;
  height: Variables.$brainButtonHeight;
  overflow: hidden;

  &:hover {
    border-color: var(--primary-0);
  }

  &.not_hovered {
    &:hover {
      border-color: var(--border-0);
    }
  }

  .header {
    display: flex;
    gap: Spacings.$spacing05;
    width: 100%;
    align-items: center;
    overflow: hidden;
    justify-content: space-between;

    .left {
      display: flex;
      gap: Spacings.$spacing03;
      align-items: center;
      overflow: hidden;

      .brain_image {
        border-radius: Radius.$normal;
      }

      .name {
        @include Typography.EllipsisOverflow;
        font-size: Typography.$small;
        font-weight: 500;
      }

      .brain_snippet {
        min-width: 24px;
        min-height: 24px;
        max-width: 24px;
        max-height: 24px;
        border-radius: Radius.$normal;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: Typography.$tiny;
      }
    }
  }

  .description {
    font-size: Typography.$tiny;
    color: var(--text-4);
    width: 100%;
    font-style: italic;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
}
